<html>
<body>
<script type="text/javascript">
if (window.XMLHttpRequest)
  {
  xhttp=new XMLHttpRequest();
  }
else // for IE 5/6
  {
  xhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
xhttp.open("GET","replace.html.xml",false);
xhttp.send();
xmlDoc=xhttp.responseXML;
alert(xmlDoc);
document.write("XML document loaded into an XML DOM Object.");
</script>
</body>
</html>